package com.jia.lidao.others.adapter;

import android.graphics.Color;
import android.widget.TextView;

import com.jia.lidao.R;
import com.jia.lidao.others.enity.Province;

public class CityAdapter extends QuickAdapter<Province.RegionsBean> {



    public CityAdapter() {

    }


    @Override
    public int getLayoutID(int viewType) {
        return R.layout.city_item;
    }

    @Override
    public void convert(VH holder, Province.RegionsBean itemData, int position) {
        TextView textView = (TextView)holder.getView(R.id.tv_city);
        textView.setText(itemData.getName());
        if(itemData.isSelector){
            textView.setTextColor(Color.BLACK);
        }else {
            textView.setTextColor(0xff999999);
        }


    }
}